package com.yukino.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yukino.pojo.Project;
import com.yukino.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查询用户所属部门的信息
     *
     * @param username
     * @return
     */
    User selectDeptInfo(String username);

    List<Project> selectProjectInfo(Long user_id);

    int updateDept_id(@Param("username") String username,@Param("dept_id") Long dept_id);
}




